<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        /* 面试用的 */
        /* 历史 */
        /* table布局 -> div+css+浮动+清浮动 -> flex -> grid  */






        .container {
            width: 600px;
            height: 800px;
            border: 1px solid black;
            display: grid;
            grid-template-areas: "header header"
                "left right"
                "footer footer";
            grid-template-columns: 1fr 2fr;
            grid-template-rows: 150px 1fr 120px;
        }

        .header {
            grid-area: header;
            background-color: pink;
        }

        .left {
            grid-area: left;
            background-color: blue
        }

        .right {
            grid-area: right;
            background-color: purple;
        }

        .footer {
            grid-area: footer;
            background-color: orange;
        }


        /* 1. display:grid  开启网络布局
        2. grid-template-columns 属性设置列宽，grid-template-rows 属性设置行高
        3. gap 设置列之间距离 */
    </style>
</head>

<body>
    <div class="container">
        <div class="footer"></div>
        <div class="header"></div>
        <div class="right"></div>
        <div class="left"></div>


    </div>
</body>

</html>